Sunday, 2 November 2008 I don't send you the definition of the function, you would not find it interesting. 2oo --- \ ___ F(X) = / cos ( // * ( floor ( X / P ) + P ) ) --- P=1 2oo represents double infinity. To better interpret this message you should render it with a fixed-width font. However I provide an ECMA-262 definition, too. var F F = function ( X ) { var P var Quantity var Value Value = 0 Quantity = X + ( X & 1 ) for ( P = 1 ; P <= Quantity ; ++ P ) Value += Math . floor ( X / P ) + P & 1 ? -1 : 1 return Value } Ciao.